package com.lock.immersive.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lock.immersive.pojo.domain.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author zhao
* @description 针对表【address】的数据库操作Mapper
* @createDate 2023-07-02 00:04:03
* @Entity .domain.Address
*/
@Mapper
public interface AddressMapper extends BaseMapper<Address> {
    @Select("select * from address where user_id = #{userId} order by create_time desc")
    List<Address> getAddressByUserId(String userId);
}




